import request from '@/utils/request'
export default {
   
   
    getTeacherListPage(current,limit,teacherQuery) {
        return request({
            url: `/eduservice/edu_teacher/pageTeacherCondition/${current}/${limit}`,
            method: 'post',
            data: teacherQuery
          })
    },
    
     deleteTeacherId(id) {
        return request({
            url: `/eduservice/edu_teacher/${id}`,
            method: 'delete'
          })
    },
   
    addTeacher(teacher){
        // console.log/
        return request({
            url:`/eduservice/edu_teacher/addTeacher`,
            method: 'post',
            data: teacher
        })
    },
        
        getTeacherInfo(id){
            return request({
                url:`/eduservice/edu_teacher/getTeacher/${id}`,
                method: 'get',
                // data:teacher
            })
        },
      
        updateTeacherInfo(teacher){
            return request({
                url:`/eduservice/edu_teacher/updateTeacher`,
                method: 'post',
                data:teacher
            })
        }
}
